package com.tuo51.evaluate.service.article;

import com.tuo51.evaluate.domain.news.Article;
import com.tuo51.evaluate.domain.news.ArticleListItem;
import com.tuo51.evaluate.vo.news.ArticleListItemVO;
import com.tuo51.evaluate.vo.news.ArticleVO;
import com.tuo51.foudation.query.base.PagerQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * *******************************
 * Created by Ron.
 * form com.tuo51
 * on 2020/7/3
 * *******************************
 */
public interface ArticleService {
    Page<ArticleListItem> homePageNews(boolean vip, String channel, PagerQuery pagerQuery);

    Page<ArticleListItem> newsList(boolean vip, String channel, String category, String staticCode, String keyword, PagerQuery pagerQuery);
    Page<ArticleListItem> newsList(boolean vip, String channel, String categoryId, String category, String staticCode, String keyword, PagerQuery pagerQuery);

    List<ArticleListItem> getArticleItemsByObject(List<String> objectIds, Integer objectType, Integer month);

    Article articleDetail(String articleId);

    Page<Article> articleList(String title, PagerQuery pagerQuery);

    ArticleListItem editItem(ArticleListItemVO item);

    Article editArticle(ArticleVO article);

    boolean deleteItem(String itemId);


    boolean deleteArticle(String articleId);
}
